﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="InfoCategoryNews.ascx.cs" Inherits="AdminPortal_Controls_Tintuc_InfoCategoryNews" %>
<%@ Register src="../Toolbox.ascx" tagname="Toolbox" tagprefix="uc1" %>
<%@ Register src="../FileUpload.ascx" tagname="FileUpload" tagprefix="uc2" %>
<%--<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>--%>
<div id="HNGdatagrid">
    <div class="header-datagrid">
        <span class="icon-edit header-text">
                <asp:Label ID="lblTitle" runat="server" Text="Danh muc"></asp:Label>
        </span>
    </div>
    <div class="navibar-control">
            <uc1:Toolbox ID="Toolbox1" runat="server" ShowSave="true" OnSaveClick="btnSave_Click"
                                                      ShowDel="true" OnDelClick="btnDel_Click"
                                                      ShowApply="true" OnApplyClick="btnApply_Click"
                                                      ShowRefesh="true" ShowBack="true" OnBackClick="btnBack_Click"
                                                        />        
        <div class="clearB"></div>
    </div>
    <div class="content-main"> 
        <table cellpadding="0" cellspacing="0" width="100%" class="tableEditInfo">
            <tr>
                <td width="150" class="itemTableLeft">ID</td>
                <td class="itemTableRight">
                    <asp:TextBox ID="txtID" runat="server" Width="50px" Enabled="false"></asp:TextBox>
                    <asp:HiddenField ID="hidID" runat="server" />
                </td>
            </tr>
            <tr>
                <td class="itemTableLeft">Tên danh mục</td>
                <td class="itemTableRight">
                    <asp:TextBox ID="txtNameCate" runat="server" Width="350"  class="easyui-validatebox" required="true"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="itemTableLeft">Danh mục cha</td>
                <td class="itemTableRight">
                    <asp:DropDownList ID="ddlCateParent" runat="server">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="itemTableLeft">Vị trí</td>
                <td class="itemTableRight">
                    <asp:DropDownList ID="ddlCatePoi" runat="server">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="itemTableLeft">Url</td>
                <td class="itemTableRight">
                    <asp:TextBox ID="txtUrl" runat="server" Width="350"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="itemTableLeft">icon</td>
                <td class="itemTableRight">
                    
                    <uc2:FileUpload ID="FileUpload1" runat="server" UploadFolder="~/upload/CateNews/" />
                    <asp:Image ID="img_news" runat="server" Width="35" ImageAlign="Bottom" Visible="false" ></asp:Image>
                                &nbsp;<asp:ImageButton ID="imgbtn_Delete" runat="server" Width="16" Height="16" 
                                    onclick="imgbtn_Delete_Click" Enabled="false" ToolTip="xoá ảnh" /><asp:Label ID="lblDelete" runat="server" Text="xoá ảnh" Visible="false"/>
                </td>
            </tr>
            <tr>
                <td class="itemTableLeft">Thứ tự</td>
                <td class="itemTableRight">
                    <asp:TextBox ID="txtOrder" runat="server" Width="50" validType="number"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtOrder"
                                            Display="Dynamic" ErrorMessage="số không hợp lệ" 
                        ValidationExpression="^\d+$" Font-Size="12px"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td class="itemTableLeft">Hiện trang chủ</td>
                <td class="itemTableRight">
                    <asp:CheckBox ID="chkIsHome" runat="server" />
                </td>
            </tr>
            <tr>
                <td class="itemTableLeft">Trạng thái</td>
                <td class="itemTableRight">
                    <asp:CheckBox ID="chkStatus" runat="server" Checked="true" />
                </td>
            </tr>
<%--            <tr>
                <td colspan="2">
                    <hng:FCKeditor ID="fckMoTa" runat="server" BasePath = "~/AdminPortal/fckeditor/" Width = "100%" Height = "600" ToolbarSet="Default"></hng:FCKeditor>    
                </td>
            </tr>--%>
        </table>
    </div>
</div>
<span style="color:Red;font-style:italic;font-size:11px;"><asp:Label ID="lblthongbao" runat="server" Text=""></asp:Label></span>